package com.faithbj.process.impl;

import java.io.Externalizable;
import java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;

/**
 * User: xiongyuanwei
 * Date: 12-7-14
 * Time: 下午9:58
 */
public class TaskIdContentIdTuple implements Externalizable {

    private long taskId;
    private long contentId;

    public TaskIdContentIdTuple(long taskId, long contentId) {
        this.taskId = taskId;
        this.contentId = contentId;
    }

    public TaskIdContentIdTuple() {

    }

    public long getTaskId() {
        return taskId;
    }

    public long getContentId() {
        return contentId;
    }

    @Override
    public void writeExternal(ObjectOutput out) throws IOException {
        out.writeLong(taskId);
        out.writeLong(contentId);
    }

    @Override
    public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
        taskId = in.readLong();
        contentId = in.readLong();
    }
}
